﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyWebPagesStarterKit.Controls;
using MyWebPagesStarterKit;

public partial class SectionControls_SiteMapTree : SectionControlBaseClass
{
    private SiteMapTree _section;

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public override bool HasAdminView
    {
        get { return false; }
    }

    public override string InfoUrl
    {
        get { return string.Empty; }
    }

    public override MyWebPagesStarterKit.ISection Section
    {
        set
        {
            if (value is SiteMapTree)
                _section = (SiteMapTree)value;
            else
                throw new ArgumentException("Section must be of type SiteMapTree");
        }
        get
        {
          return _section;
        }
    }
}
